﻿var currentRowId = 0;
function SelectRow() {
    if (event.keyCode == 40)
        MarkRow(currentRowId + 1);
    else if (event.keyCode == 38)
        MarkRow(currentRowId - 1);
}
var gridview_setting_oldstyle;
function MarkRow(rowId) {
    if (document.getElementById(rowId) == null)
        return;

    if (document.getElementById(currentRowId) != null)
        document.getElementById(currentRowId).style.backgroundColor = gridview_setting_oldstyle;

    currentRowId = rowId;
    gridview_setting_oldstyle = document.getElementById(rowId).style.backgroundColor;
    document.getElementById(rowId).style.backgroundColor = '#D8EBF0';

} 